package com.leonzhangxf.spel.beandefinition.annotation;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * A demo use for annotation expression analysis in setter method injection.
 *
 * @author leonzhangxf
 * @date 20190427
 */
@Component
@Data
public class PropertyValueTestBean {

    private String defaultLocale;

    @Value("#{ systemProperties['user.region'] }")
    public void setDefaultLocale(String defaultLocale) {
        this.defaultLocale = defaultLocale;
    }
}
